package com.orphan.supplier.service.impl;

import com.orphan.supplier.po.Good;
import com.orphan.supplier.mapper.GoodMapper;
import com.orphan.supplier.service.IGoodService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jack
 * @since 2021-07-20
 */
@Service
public class GoodServiceImpl extends ServiceImpl<GoodMapper, Good> implements IGoodService {
    @Autowired
    GoodMapper goodMapper;
    @Override
    public List<Good> getAll() {
        return goodMapper.findAll();
    }
}
